package online.westonline.com.westonline.entry;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

/**
 * 便签实体
 * type{
 *     mynode
 *     forgive
 *     remenber
 *     words
 *     aboutwork
 * }
 * Created by xiatao on 2018/6/11.
 */
@Entity
public class NodeBean
{
    @Id(autoincrement = true)
    Long id;
    @Property(nameInDb = "title")
    String title;
    @Property(nameInDb = "content")
    String content;
    @Property(nameInDb = "time")
    String time;
    @Property(nameInDb = "type")
    String type;
    @Property(nameInDb = "loca_imgs")
    String img_paths;
    @Property(nameInDb = "net_imgs")
    String net_img_paths;
    //记录是否选中的标记
    //不入库
    private boolean check = false;

    @Generated(hash = 1040412659)
    public NodeBean(Long id, String title, String content, String time, String type,
            String img_paths, String net_img_paths, boolean check) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.time = time;
        this.type = type;
        this.img_paths = img_paths;
        this.net_img_paths = net_img_paths;
        this.check = check;
    }

    @Generated(hash = 1752592544)
    public NodeBean() {
    }

    public boolean isCheck() {
        return check;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImg_paths() {
        return this.img_paths;
    }

    public void setImg_paths(String img_paths) {
        this.img_paths = img_paths;
    }

    public String getNet_img_paths() {
        return this.net_img_paths;
    }

    public void setNet_img_paths(String net_img_paths) {
        this.net_img_paths = net_img_paths;
    }

    public boolean getCheck() {
        return this.check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
